<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>终端序列号查询</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"

	rel="stylesheet" />
	
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
	<script type="text/javascript" src="/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="/js/tabcontrol/TabPanel.js"></script>
	

<style>
　　　
　　　　　a {
	text-decoration: none
}

　　　　　a:hover {
	color: red;
	text-decoration: none
}

a:VISITED {
	color: red;
}
　　


　　　
</style>

<script type="text/javascript">

	
	
</script>



</head>

<body>

	<div class="subpage">
		<s:form id="queryForm" action="/serial/querySerial.ct" method="post"
			theme="simple">
			<div class="user_title">
				<h2 class="headline-inquires">
					POS收单运营管理平台<br />
					<span class="sub-title"></span>
				</h2>
			</div>
			<table width="100%" cellpadding="0" cellspacing="0" border="0"
				class="query_table">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">
							终端序列号查询<br />
							<span class="sub-title"></span>
						</h2>

					</td>
				</tr>


				<tr>
					<td colspan="4">&nbsp;</td>
				</tr>
        	 <tr>	<s:if test="#session.session_merchant.roleType==\"03\"||#session.session_merchant.roleType==\"15\" || #session.session_merchant.roleType==\"16\"">
			  <td align="right" width="15%"></td>
			  <td>
                  <s:hidden name="searchCondition.orgCode" value="%{#session.session_merchant.orgCode}" />
			  </td>
			</s:if><s:else>
                <td align="right" width="15%">所属机构：</td>
						<td>
							
							<s:select cssClass="queryWidth" name="searchCondition.orgCode"
								id="orgCode"
								list="orgList" listKey="org_code" listValue="org_name" />
								
						</td></s:else>
						<td align="right">代理商：</td>
						
					<td align="left"> <s:select cssClass="queryWidth" name="searchCondition.agent"
								id="orgCode"
								list="agentList" listKey="key" listValue="value" /></td>
					   <td align="right" width="15%">品牌：</td>
						<td>
							
							<s:select cssClass="queryWidth" name="searchCondition.posBrand"
								id="orgCode"
								list="#request.brandMap" listKey="key" listValue="value" />
								
						</td>
						
						</tr>
				

				<tr>
					<td align="right" width="15%">机型：</td>
						<td>
							
							<s:select cssClass="queryWidth" name="searchCondition.posType"
								id="orgCode"
								list="#request.typeMap" listKey="key" listValue="value" />
								
						</td>
						<td align="right" width="15%">名称：</td>
						<td>
							
							<s:select cssClass="queryWidth" name="searchCondition.posName"
								id="orgCode"
								list="#request.nameMap" listKey="key" listValue="value" />
								
						</td>
						<td align="right" colspan="2">&nbsp;</td>
				</tr>
				<tr>
					<td align="right">起始终端序列号：</td>
					<td align="left" colspan="3"><s:textfield id="psamCardStartNo" name="searchCondition.psamCardStartNo" maxlength="15"  cssClass="queryWidth"/>
					至
					<s:textfield id="psamCardEndNo" name="searchCondition.psamCardEndNo" maxlength="15"  cssClass="queryWidth"/>
					</td>
				</tr>
				
				<tr>
						<td colspan="4" align="center"><span style="font-color: red"><s:actionerror /></span>
							<span style="font-color: red;"><s:actionmessage /></span > <span style="font-color: red;"><s:fielderror
									cssClass="fieldError" /></span>
							<span id="otherError"></span>
						</td>
					</tr>
				<tr>
					<td colspan="4" align="right"><s:submit  value="查询" />
					<s:reset value="取  消" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td></tr>
				<tr>
					<td colspan="4">&nbsp;</td>
				</tr>
			</table>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">终端序列号基本信息</h2>

					</td>
				</tr>
				<s:if
					test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp; <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/serial/querySerial.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
			<table id="tableList" width="100%" class="table">
				<thead>
					<tr>
						<th>选择</th>
						<th>账号</th>
						<th>姓名</th>
						<th>性别</th>
						<th>手机号</th>
						<s:if test="#session.session_merchant.roleType==\"03\"||#session.session_merchant.roleType==\"15\"||#session.session_merchant.roleType==\"16\"">
						</s:if><s:else><th>所属机构</th></s:else>
						<th>角色类型</th>
						<th>证件号</th>
						<th>状态</th>
						<th>有效开始时间</th>
						<th>有效结束时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.searchRsList" status="stat" id="oper">
							<tr class="<s:if test="#stat.index%2==0">tr_0</s:if>" >
							<td align="center">
								<s:if test="#session.session_merchant.id==#oper.id||#oper.status=='02'">
								  <s:checkboxlist disabled="true" name="multi_sel" list="#{#oper.id:''}"  theme="simple" />
					     
								</s:if>
								<s:else>
					        	      <s:checkboxlist  name="multi_sel" list="#{#oper.id:''}"  theme="simple" />
					        	</s:else>
						       </td>
							<td>[<s:if test="#oper.roleType=='02'||#oper.roleType=='03'"><s:a href="agentDetailed.ct?accountNo=%{#oper.accountNo}"><s:property value="#oper.accountNo"/></s:a></s:if>
							<s:else><s:a href="otherDetailed.ct?accountNo=%{#oper.accountNo}"><s:property value="#oper.accountNo"/></s:a></s:else>]</td>
						
							<td><s:a href="javascript:addpanel('','操作员基本信息修改','/fmposm/query/modif.ct?id=%{#oper.id}')"><s:property value="#oper.realName"/></s:a>
							
							</td> <td> <s:if test="#oper.sex==1">男</s:if>
					        <s:elseif test="#oper.sex==2">女</s:elseif>
					        <s:else></s:else></td>
							<td>  <s:property value="#oper.mobile"/></td>
							<s:if test="#session.session_merchant.roleType==\"03\"||#session.session_merchant.roleType==\"15\"||#session.session_merchant.roleType==\"16\"">
							</s:if><s:else>
							<td>  <s:property value="#oper.orgName"/></td></s:else>
							<td>  <s:property value="#oper.roleName"/></td>
							<td> <s:property value="#oper.cardNo"/>	</td>
							<td> <s:if test="#oper.status=='00'">正常</s:if>
							<s:elseif test="#oper.status=='02'">注销</s:elseif></td>
							<td><s:property value="#oper.validStartDate"/></td>
							<td><s:property value="#oper.validEndDate"/></td>
							<td><s:if test="#session.session_merchant.id!=#oper.id">
							<s:if test="#oper.status=='00'">
							  <s:a href="logOut.ct?oper.id=%{#oper.id}">注销</s:a></s:if>
							<s:elseif test="#oper.status=='02'">
							 <s:a href="recover.ct?oper.id=%{#oper.id}">恢复</s:a></s:elseif>
							<s:else>无操作</s:else></s:if><s:else>无操作</s:else></td></tr>
						</s:iterator>
				</tbody>
			</table>
		</s:form>
	</div>
	<s:if test="#request.info_request !=null">
	<script language="javascript">
	    alert("${request.info_request}");
	    </script>
	</s:if>	
</body>
</html>
